package com.csust.automaticteach.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csust.automaticteach.model.entity.ClassTeacher;
import com.csust.automaticteach.model.vo.classes.classteacher.TeacherClassesVO;
import com.csust.automaticteach.service.ClassTeacherService;
import com.csust.automaticteach.mapper.ClassTeacherMapper;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 钰玟
* @description 针对表【t_class_teacher(班级老师关联表)】的数据库操作Service实现
* @createDate 2025-08-16 15:41:28
*/
@Service
public class ClassTeacherServiceImpl extends ServiceImpl<ClassTeacherMapper, ClassTeacher>
    implements ClassTeacherService{
    @Resource
    private ClassTeacherMapper classTeacherMapper;
    /**
     * 获取老师所负责的班级
     * @param teacherId 请求
     * @return 列表
     */
    @Override
    public List<TeacherClassesVO> listClassesByTeacherId(Long teacherId) {
        return classTeacherMapper.listClassesByTeacherId(teacherId);
    }
}




